﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.WmsManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.WmsManagement.MaterialDocVMs
{
    public partial class MaterialDocBatchVM : BaseBatchVM<MaterialDoc, MaterialDoc_BatchEdit>
    {
        public MaterialDocBatchVM()
        {
            ListVM = new MaterialDocListVM();
            LinkedVM = new MaterialDoc_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class MaterialDoc_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._MaterialDoc._Name")]
        public string Name { get; set; }
        [Display(Name = "_Model._MaterialDoc._Spec")]
        public string Spec { get; set; }
        [Display(Name = "_Model._MaterialDoc._Unit")]
        public string Unit { get; set; }
        [Display(Name = "_Model._MaterialDoc._ErpCode")]
        public string ErpCode { get; set; }
        [Display(Name = "_Model._MaterialDoc._MaterialProperty")]
        public MaterialPropertyEnum? MaterialProperty { get; set; }
        [Display(Name = "_Model._MaterialDoc._MaterialType")]
        public MaterialClassifyEnum? MaterialType { get; set; }
        [Display(Name = "_Model._MaterialDoc._Expiration")]
        public int? Expiration { get; set; }
        [Display(Name = "_Model._MaterialDoc._Rules")]
        public string Rules { get; set; }
        [Display(Name = "_Model._MaterialDoc._Supplier")]
        public string Supplier { get; set; }
        [Display(Name = "_Model._MaterialDoc._Pos")]
        public string Pos { get; set; }
        [Display(Name = "_Model._MaterialDoc._Active")]
        public bool? Active { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}